<?php
$texte="<table class='forum'>
	{SUJET}
		<tr>
		<td class='gauche'></td>
		<td class='classic txt_14 txt_left b ombre lien_titre'>
		{titre}
		</td>
		<td class='classic txt_11 txt_center ombre' style=''>{date}</td>
		<td class='droit'></td>
		</tr>
		
		<tr>
		<td class='' colspan='2' >
		{redacteur}<br/>
		{avatar}<br/>
		{rang}<br/>
		messages : {nbr_message}
		</td>
		<td class=' txt_11 txt_center ombre' colspan='2' style=''>{texte_sujet}</td>
		</tr>

	{FIN_SUJET}
	{REPONSES}
		<tr>
		<td class='border first' colspan='4'>
			<span class='titre'>
				Re : {titre}
			</span><span class='date'>{date}</span>
		</td>	
		</tr>
		<tr>
		<td class='' colspan='2' style='width:200px;'>
		{redacteur}<br/>
		{avatar}<br/>
		{rang}<br/>
		messages : {nbr_message}
		</td>
		<td class=' txt_11 txt_center ombre' colspan='2' style=''>{texte_sujet}</td>
		</tr>
		
	{FIN_REPONSES}
</table>";
echo $texte;
$txt=preg_replace('#\{REPONSES\}(.*)\{FIN_REPONSES\}#s','',$texte);
echo "<br/>Avant<br/>---------------------------------------------------------------------------------------<br/>Apres<br/><br/><br/>";
echo $txt;
